package com.jrx.anytxn.param.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "batchconfig.anytxn")
public class AnytxnBatchProperties {
    /**
     * 默认配置
     */
    private DefaultConfig defaultConfig = new DefaultConfig();

    /**
     * 日切作业配置
     */
    private DefaultConfig cutoverConfiguration = new DefaultConfig(100, 0, 1, 1000);

    /**
     * 账务流水 文件 作业配置
     */
    private DefaultConfig subjectFilterConfiguration = new DefaultConfig(100, 0, 1, 1000);

    /**
     * 批量调额 作业配置
     */
    private DefaultConfig batchLimitAdjustConfiguration = new DefaultConfig(100, 0, 1, 1000);

    /**
     * 核心对账 作业配置
     */
    private DefaultConfig batchBillCompareConfiguration = new DefaultConfig(100, 0, 1, 1000);

    /**
     * 出资方额度更新作业配置
     */
    private DefaultConfig investorLimitConfiguration = new DefaultConfig(100, 0, 1, 1000);

    private DefaultConfig fileConfig = new DefaultConfig(1000, 0, 1, 10000);

    /**
     * 读取提前还款文件
     */
    private DefaultConfig readPrepayFileConfig = new DefaultConfig(100, 0, 1, 1000);

    /**
     * 读取正常还款文件
     */
    private DefaultConfig repayResultConfig = new DefaultConfig(100, 0, 1, 1000);

    public DefaultConfig getFileConfig() {
        return fileConfig;
    }

    public void setFileConfig(DefaultConfig fileConfig) {
        this.fileConfig = fileConfig;
    }

    public DefaultConfig getDefaultConfig() {
        return defaultConfig;
    }

    public void setDefaultConfig(DefaultConfig defaultConfig) {
        this.defaultConfig = defaultConfig;
    }


    public DefaultConfig getCutoverConfiguration() {
        return cutoverConfiguration;
    }

    public void setCutoverConfiguration(DefaultConfig cutoverConfiguration) {
        this.cutoverConfiguration = cutoverConfiguration;
    }

    public DefaultConfig getSubjectFilterConfiguration() {
        return subjectFilterConfiguration;
    }

    public void setSubjectFilterConfiguration(DefaultConfig subjectFilterConfiguration) {
        this.subjectFilterConfiguration = subjectFilterConfiguration;
    }

    public DefaultConfig getBatchLimitAdjustConfiguration() {
        return batchLimitAdjustConfiguration;
    }

    public void setBatchLimitAdjustConfiguration(DefaultConfig batchLimitAdjustConfiguration) {
        this.batchLimitAdjustConfiguration = batchLimitAdjustConfiguration;
    }

    public DefaultConfig getInvestorLimitConfiguration() {
        return investorLimitConfiguration;
    }

    public void setInvestorLimitConfiguration(DefaultConfig investorLimitConfiguration) {
        this.investorLimitConfiguration = investorLimitConfiguration;
    }

    public DefaultConfig getBatchBillCompareConfiguration() {
        return batchBillCompareConfiguration;
    }

    public void setBatchBillCompareConfiguration(DefaultConfig batchBillCompareConfiguration) {
        this.batchBillCompareConfiguration = batchBillCompareConfiguration;
    }

    public DefaultConfig getReadPrepayFileConfig() {
        return readPrepayFileConfig;
    }

    public void setReadPrepayFileConfig(DefaultConfig readPrepayFileConfig) {
        this.readPrepayFileConfig = readPrepayFileConfig;
    }

    public DefaultConfig getRepayResultConfig() {
        return repayResultConfig;
    }

    public void setRepayResultConfig(DefaultConfig repayResultConfig) {
        this.repayResultConfig = repayResultConfig;
    }
}
